package com.fi.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author songqiang
 * @desc
 * @created on 2023 年 09 月 05
 * @Date 14:51
 * @since 1.0
 */

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("res_accessory_file_info_label")
public class ResAccessoryFileInfoLabel implements Serializable {

    @TableId(value = "id")
    private Long id;

    @TableField("group_id")
    private String groupId;

    @TableField("group_name")
    private String groupName;

    @TableField("group_count")
    private Integer groupCount;

    @TableField("group_status")
    private Integer groupStatus;

    @TableField("flow_status")
    private Integer flowStatus;

    @TableField("change_group_status")
    private Integer changeGroupStatus;

    @TableField("tag_id")
    private String tagId;

    @TableField("hit_tag_count")
    private Integer hitTagCount;

    private String hitTagKeyword;

    @TableField("scene_id")
    private String sceneId;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;

    // ----------------------------- 以下字段都是用于辅助对标签命中的辅助，字段值需要从ResAccessoryFileInfo 和 ResAccessTitleEntity 查询后进行填充  ----start-----
    /**
     * 公告标题
     */
    @TableField(exist = false)
    private String title;

    /**
     * 子标题
     */
    @TableField(exist = false)
    private String subtitle;


    @TableField(exist = false)
    private boolean matchedLabel;

    @TableField(exist = false)
    private String putGroupName;

    @TableField(exist = false)
    private Integer putStatus;

    @TableField(exist = false)
    private Integer mainType;
}
